Skip to content

Conversation

@cratelyn
Copy link
Member

@cratelyn cratelyn commented Nov 7, 2025

this branch makes changes to scripts in the bin/ directory, to
restore the end-to-end local development workflow described in
BUILD.md here:
https://github.com/linkerd/linkerd2/blob/main/BUILD.md#comprehensive

now that we no longer include a bin-cli in our published artifacts,
we can remove that image from the list of images that the _docker.sh
helper script is aware of. this means we now refrain from (a)
building the image when bin/docker-build is run, and (b) loading the
image when bin/image-load is run.

some related comments are updated in this branch, while we are here.


  • refactor: remove cli-bin from _docker.sh images
    this helper script wrapping docker is used by various scripts in the
    development workflow.

    in chore(ci)!: update CLI build pipeline  #14360, we removed the
    cli-bin image from our published artifacts.

    Signed-off-by: katelyn martin [email protected]

  • nit(bin): update build-cli-bin comment
    this commit removes mention of docker from this comment. there is no
    longer an equivalent docker-build-cli-bin script, so this is the way
    that we build the cli binary.

    Signed-off-by: katelyn martin [email protected]

  • fix(bin): remove cli from bin/docker-build
    this commit removes mention of the cli from our bin/docker-build
    script.

    in chore(ci)!: update CLI build pipeline  #14360, we removed the cli
    image from our published artifacts. moreover, invoking bin/linkerd
    will call bin/build-cli-bin.

    so, this commit removes both calls, to the now deleted
    bin/docker-build-cli-bin script, as well as the bin/build-cli-bin
    script. this lets the bin/docker-build script focus solely on docker
    images.

    Signed-off-by: katelyn martin [email protected]

  • docs(cli): a comment about cli image ENTRYPOINT
    this image is used within CI, and broadly as a "layer" to place the cli
    binaries in a final image.

    the cli image itself however, is not currently intended for use directly
    via docker build, and will consequently yield an error response if
    built directly.

    this commit adds a comment providing some information about this.

    see chore(ci)!: update CLI build pipeline  #14360 for more.

    Signed-off-by: katelyn martin [email protected]

this helper script wrapping docker is used by various scripts in the
development workflow.

in #14360, we removed the
`cli-bin` image from our published artifacts.

Signed-off-by: katelyn martin <[email protected]>
this commit removes mention of docker from this comment. there is no
longer an equivalent `docker-build-cli-bin` script, so this is the way
that we build the cli binary.

Signed-off-by: katelyn martin <[email protected]>
this commit removes mention of the cli from our `bin/docker-build`
script.

in #14360, we removed the cli
image from our published artifacts. moreover, invoking `bin/linkerd`
will call `bin/build-cli-bin`.

so, this commit removes both calls, to the now deleted
`bin/docker-build-cli-bin` script, as well as the `bin/build-cli-bin`
script. this lets the `bin/docker-build` script focus solely on docker
images.

Signed-off-by: katelyn martin <[email protected]>
this image is used within CI, and broadly as a "layer" to place the cli
binaries in a final image.

the cli image itself however, is not currently intended for use directly
via `docker build`, and will consequently yield an error response if
built directly.

this commit adds a comment providing some information about this.

see #14360 for more.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn self-assigned this Nov 7, 2025
@cratelyn cratelyn changed the title kate/remove cli image from development scripts fix: restore bin/docker-build functionality Nov 7, 2025
@cratelyn cratelyn marked this pull request as ready for review November 7, 2025 17:08
@cratelyn cratelyn requested a review from a team as a code owner November 7, 2025 17:08
@cratelyn cratelyn enabled auto-merge (squash) November 7, 2025 17:23
@cratelyn cratelyn merged commit 76e274f into main Nov 7, 2025
65 of 67 checks passed
@cratelyn cratelyn deleted the kate/remove-cli-image-from-development-scripts branch November 7, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants